[<g:each in="${pieces}" status="i" var="piece">
{"type":"${piece.type()}","color":"${piece.color()}","x":${piece.x},"y":${piece.y},"alive":${piece.alive}},
</g:each>]